package com.pinghua.regena.auth.handler;

import com.coffee.oauth.handler.CoffeeOauthFailureHandler;
import jakarta.servlet.http.HttpServletRequest;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Service;

/**
 * @author songkui
 * @since 2025/5/22
 */
@Service
@AllArgsConstructor
@Slf4j
public class OauthFailureHandler implements CoffeeOauthFailureHandler {
    @Override
    public void handle(HttpServletRequest httpServletRequest, AuthenticationException e) {
        log.error("认证失败：{}", e.getMessage());
    }
}
